<template>
    <div class="popcontent" v-show="openflag">
      <div class="unopenbox">
          <div class="stateimg"><img src="../../../static/images/indexone/state03.png"></div>
          <p class="txt">此处暂未开放!</p>
      </div>
      <div class="f-mask"></div>
    </div>
</template>

<script>
import Bus from '../../../bus.js'
export default {
  name: 'unopen',
  data () {
    return {
      openflag: false
    }
  },
  mounted: function () {
    let _this = this
    Bus.$on('openShow', function (index) {
      _this.openflag = true
      setTimeout(() => {
        _this.openflag = false
      }, 3000)
    })
  }
}
</script>

<style lang="stylus" scoped>
    .popcontent
      .unopenbox
          display: inline-block;
          width: 2.22rem;;
          height: 2.02rem;
          background-color: rgba(0, 0, 0, 0.3);
          border-radius: 0.1rem;
          position: absolute;
          top: 50%;
          left: 50%;
          margin: -1.01rem 0 0 -1.11rem;
          z-index: 11;
          .stateimg
              width: 0.78rem;
              height: 0.78rem;
              margin: 0.4rem auto 0.25rem auto;
              img
                  width: 100%;
                  height: 100%;
                  display: block;
          .txt
              font-size: 0.3rem;
              text-align: center;
              color: #fff;
      .f-mask
          position: fixed;
          top: 0;
          left: 0
          right: 0;
          bottom: 0;
          z-index: 10;
          background: rgba(0,0,0,0);

</style>
